package com.feige.utils.constant;

/**
 * @author feige
 */
public interface Constants {

    /**
     * 统一返回结果对应值标志
     */
    String CODE_TAG = "code";
    String MSG_TAG = "msg";
    String DATA_TAG = "data";
    /**
     * 枚举状态码和提示信息
     */
    int SUCCESS_CODE = 200;
    int ERROR_CODE = 500;
    String SUCCESS_MSG = "success";
    String ERROR_MSG = "error";
    /**
     * jwt秘钥
     */
    String APP_SECRET = "ukc8BDbRigUDaY6pZFfWus2jZWLPHO";
    /**
     * token
     */
    String TOKEN_KEY = "Authorization";
    String TOKEN_PREFIX = "Bearer";
    int TOKEN_EXPIRE = 7 * 24 * 60 * 60;
    /**
     * 登录用户key
     */
    String LOGIN_USER_KEY = "login_user:";
}

